import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 保养任务*/
// 创建
export const machineManagerUpkeepMachineJobCreate = (data) => postRequest('/machinemanager/upkeep-machine-job/create', data);
// 更新
export const machineManagerUpkeepMachineJobUpdate = (data) => putRequest('/machinemanager/upkeep-machine-job/update', data);

// 删除
export const machineManagerUpkeepMachineJobDelete = (params) => deleteRequest('/machinemanager/upkeep-machine-job/delete', params);

// 获得
export const machineManagerUpkeepMachineJobGet = (params) => getRequest('/machinemanager/upkeep-machine-job/get', params);

// 分页
export const machineManagerUpkeepMachineJobPage = (params) => postRequest('/machinemanager/upkeep-machine-job/page', params);

export const machineManagerUpkeepMachineJobGetSchedule = (params) => postRequest('/machinemanager/upkeep-machine-job/get-schedule', params);

export const machineManagerUpkeepMachineGobGetStateCount = (params) => postRequest('/machinemanager/upkeep-machine-job/get-state-count', params);
export const machineManagerUpkeepMachineJobTaking = (params) => postRequest('/machinemanager/upkeep-machine-job/taking', params);
export const machineManagerUpkeepMachineJobClearTaking = (params) => postRequest('/machinemanager/upkeep-machine-job/clear-taking', params);

export const machineManagerUpkeepMachineJobComplete = (params) => postRequest('/machinemanager/upkeep-machine-job/complete', params);
export const machineManagerUpkeepMachineJobClearComplete = (params) => postRequest('/machinemanager/upkeep-machine-job/clear-complete', params);
// 跳过
export const machineManagerUpkeepMachineJobPass = (params) => postRequest('/machinemanager/upkeep-machine-job/pass', params);

export const machineManagerUpkeepMachineJobMachinePage = (params) => postRequest('/machinemanager/upkeep-machine-job/machine-page', params);
export const machineManagerUpkeepMachineJobItemPage = (params) => getRequest('/machinemanager/upkeep-machine-job/item-page', params);
export const machineManagerUpkeepMachineJobFindTerm = (params) => getRequest('/machinemanager/upkeep-machine-job/find-term', params);

export const machineManagerUpkeepMachineJobPageRecord = (params) => postRequest('/machinemanager/upkeep-machine-job/page-record', params);
